import { effectKey, quality, EffectClassType, SkillType, TargetType, LogType } from "../../../../../shared/face/enums"
import { _Skill } from "../../../types"

/**
 * 技能简化配置示例
 */
let data: _Skill[] = []

// 示例1：简单的伤害技能
data.push({
    id: 'EXAMPLE001',
    quality: quality.F,
    classType: EffectClassType.攻击型,
    name: '火焰箭',
    desc: '对敌方造成魔法伤害并附加燃烧效果',
    data: [
        {
            attKey: '魔法攻击',
            attRange: 1.5
        }
    ],
    effect: [effectKey.伤害类_魔法伤害],
    buffs: [
        {
            id: '燃烧',
            name: '燃烧',
            logType: LogType.伤害,
            duration: 3,
            effectType: '持续伤害',
            damage: 5,
            damageType: '魔法攻击'
        }
    ],
    cooldown: 2,
    type: SkillType.光环技能,
    targetType: [TargetType.敌方]
})

// 示例2：治疗技能
data.push({
    id: 'EXAMPLE002',
    quality: quality.F,
    classType: EffectClassType.辅助型,
    name: '治愈术',
    desc: '治疗友军并附加护盾效果',
    data: [
        {
            attKey: '魔法攻击',
            attRange: 2
        }
    ],
    effect: [effectKey.辅助类_生命回复],
    buffs: [
        {
            id: '护盾',
            name: '护盾',
            logType: LogType.护盾,
            duration: 2,
            effectType: '护盾',
            shieldValue: 50
        }
    ],
    cooldown: 3,
    type: SkillType.主动技能,
    targetType: [TargetType.我方]
})

// 光环技能 - 攻击力加成
data.push({
    id: 'EXAMPLE003',
    quality: quality.F,
    classType: EffectClassType.辅助型,
    name: '勇气光环',
    desc: '为友军提供攻击力加成',
    data: [
        {
            attKey: '魔法攻击',
            attRange: 0,
            fixed:1000,
            attributeName: '物理攻击' // 指定要提升的属性
        }
    ],
    effect: [effectKey.辅助类_属性提升], // 使用新的属性提升效果
    buffs: [
        // {
        //     id: '攻击力加成',
        //     name: '攻击力加成',
        //     logType: LogType.治疗,
        //     duration: NaN,
        //     effectType: '属性',
        //     attributeModifiers: {
        //         '物理攻击': 1000
        //     }
        // }
    ],
    cooldown: 0,
    type: SkillType.光环技能,
    targetType: [TargetType.我方]
})

// 示例4：纯护盾技能
data.push({
    id: 'EXAMPLE004',
    quality: quality.F,
    classType: EffectClassType.辅助型,
    name: '护盾术',
    desc: '为目标提供护盾保护',
    data: [
        {
            attKey: '魔法攻击',
            attRange: 1.5
        }
    ],
    effect: [effectKey.辅助类_护盾],
    cooldown: 2,
    type: SkillType.光环技能,
    targetType: [TargetType.我方]
})

// 复合技能 - 伤害+属性提升
data.push({
    id: 'EXAMPLE005',
    quality: quality.D,
    classType: EffectClassType.全能型,
    name: '战斗怒吼',
    desc: '对敌人造成伤害并提升自身攻击力',
    data: [
        {
            attKey: '物理攻击',
            attRange: 1.2
        },
        {
            attKey: '物理攻击',
            attRange: 0.3,
            attributeName: '物理攻击'
        }
    ],
    effect: [
        effectKey.伤害类_物理伤害,
        effectKey.辅助类_属性提升
    ],
    buffs: [
        {
            id: '攻击力加成',
            name: '攻击力加成',
            logType: LogType.治疗,
            duration: 3,
            effectType: '属性',
            attributeModifiers: {
                '物理攻击': 15
            }
        }
    ],
    cooldown: 4,
    type: SkillType.主动技能,
    targetType: [TargetType.敌方, TargetType.自己]
})

export default data; 